package com.ly.mapper;

import com.ly.bean.UserVip;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @author 李岩
 * @date 2021/12/20-14:34
 * @describe
 */
@Mapper
public interface UserVipMapper {
    /*
    *       根据用户id来判断是否是vip
    */
    int findUserVipByuid(UserVip userVip) throws Exception;

    List<Map<String,Object>> findMonthVipUsers() ;
    //增加VIP用户信息
    void addVipUser(@Param("uid") Integer uid, @Param("ym") String ym) ;

}
